package com.xuecheng.content.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 课程未发布异常
 * @date 2025/2/19 9:25
 */
public class CourseNotPublishException extends XCPlusBaseException {

    CourseNotPublishException(String message) {
        super(message);
    }

    public static void cast() {
        throw new CourseNotPublishException(ContentError.COURSE_NOT_PUBLISHED.getErrMessage());
    }
}
